<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-model结合radio类型</title>
    <script src="js/vue.min.js"></script>
</head>
<body>
<div id="app">
    <label for="male">
        <input id="male" type="radio" name="sex" value="男" v-model="sex">男
    </label>
    <label for="female">
        <input id="female" type="radio" name="sex" value="女" v-model="sex">女
    </label>
    <div>你选择的性别是   {{sex}}</div>
</div>
</body>
<script>
    const app = new Vue({
        el:"#app",
        data:{
            message:'zzz',
            sex:"男"
        }
    })
</script>
</html>